package polymorphicdemo;

public class Cat extends Animal {
    public Cat(int age, String color) {
        super(age, color);
    }
    public Cat() {
        catchMouse();
    }
    public void catchMouse() {
        System.out.println("猫抓老鼠");
    }
}
